package com.hb.core.pojo.project.section.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hb.core.pojo.Attachments;
import com.hb.core.pojo.parent.MPCommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 投标人投标信息
 * </p>
 *
 * @author admin
 * @since 2021-11-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("trade_bid_section_tender")
@ApiModel(value = "BidSectionTender对象", description = "投标人投标信息")
public class BidSectionTender extends MPCommonEntity {

    @ApiModelProperty(value = "组织机构Id")
    private Long orgId;

    @ApiModelProperty(value = "标段包ID")
    private Long sectionId;

    @ApiModelProperty(value = "投标人ID")
    private Long bidderId;

    @ApiModelProperty(value = "在线制作：开标一览表内容")
    private String openingScheduleContent;

    @ApiModelProperty(value = "在线制作：已签章的pdf投标文件")
    private Attachments tenderPdfSignature;

    @ApiModelProperty(value = "在线制作：未加密的投标文件")
    private Attachments unencryptedDocument;

    @ApiModelProperty(value = "投标文件")
    private Attachments tenderDocument;

    @ApiModelProperty(value = "解密后的投标文件")
    private Attachments decTenderDocument;

    @ApiModelProperty(value = "解密后的投标文件pdf")
    private Attachments tenderPdf;

    @ApiModelProperty(value = "联系人姓名")
    private String contactName;

    @ApiModelProperty(value = "联系人手机")
    private String mobile;

    @ApiModelProperty(value = "联系人邮箱")
    private String email;

    @ApiModelProperty(value = "固定电话/回执电话")
    private String tel;

    @ApiModelProperty(value = "成功时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime successTime;

    @ApiModelProperty(value = "投标ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "撤回时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  withdrawTime;

    @ApiModelProperty(value = "回执文件")
    private Attachments receiptFile;

    @ApiModelProperty(value = "状态(0:保存 1:递交成功 2:撤回)")
    private Integer status;

    @ApiModelProperty(value = "是否签到")
    private Integer signFlag;

    @ApiModelProperty(value = "签到时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime  signTime;
}
